-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teams initial support #146
Teams initial support #146
Conversation
dc8b1cf
to
e2dc919
Compare
@gabcoyne I removed the unsupported checker from the linter should be good now |
Nice!👌 This would help out us quite a bit also! |
@@ -155,7 +155,6 @@ linters-settings: | |||
- sliceClear | |||
- sloppyLen | |||
- sloppyReassign | |||
- sloppyTestFuncName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
# Assign the Workspace Role to the Team | ||
resource "prefect_workspace_access" "team_developer" { | ||
accessor_type = "TEAM" | ||
accessor_id = "11111111-1111-1111-1111-111111111111" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accessor_id = "11111111-1111-1111-1111-111111111111" | |
accessor_id = prefect_account_member.marvin.user_id |
just to reinforce that accessor_id
is either a service account ID or an account member ID (eg a user). "accessor" is kind of an abstract term we chose here to unify the bot/user domains, so it might not be immediately clear to the TF user
// TeamFilter defines the search filter payload | ||
// when searching for team by name. | ||
// example request payload: | ||
// {"teams": {"name": {"any_": ["test"]}}}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@@ -87,9 +87,9 @@ func (r *WorkspaceAccessResource) Schema(_ context.Context, _ resource.SchemaReq | |||
}, | |||
"accessor_type": schema.StringAttribute{ | |||
Required: true, | |||
Description: "USER or SERVICE_ACCOUNT", | |||
Description: "USER | SERVICE_ACCOUNT | TEAM", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing work! I left a non-blocking suggestion for the docs section, but this looks great. thank you for doing this!
taking a look at the failing CI steps |
ok this has to do with how we set up our workflow triggers - GHA won't insert Secrets from a forked workflow for obvious reasons. I'm going to merge this in, but also sanitize our main branch in case there are failures. thanks for the contribution @triedandtested-dev |
Resolves #144